package fr.istic.linkedcv.client.services;

import java.util.List;
import java.util.Map;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import fr.istic.linkedcv.client.GroupesCli;
import fr.istic.linkedcv.client.MessageCli;
import fr.istic.linkedcv.client.PersonneCli;

@RemoteServiceRelativePath("personne")
public interface PersonneService extends RemoteService {
	boolean addPersonne(Map<String,String> pers);
	List<PersonneCli> getListePersonnes();
	boolean login(Map<String, String> pers);
	boolean isLogged();
	PersonneCli myAccount();
	boolean createGroupe(Map<String, String> groupe);
	List<GroupesCli> getListeGroupes();
	boolean addFriend(String friendName);
	List<PersonneCli> getFriends();
	boolean logout();
	boolean exitGroupe(String groupeName);
	boolean deleteFriend(String friendName);
	boolean envoyerMessageToAllFriends(Map<String, String> message);
	boolean envoyerMessageToFriend(Map<String, String> message, String friendName);
	List<MessageCli> seeMessages();
}
